package com.ruoyi.system.dto.kujiale.info;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 酷家乐存档资源实体（对应三方接口result.resources元素）
 */
@Data
@ApiModel(description = "酷家乐存档包含的资源文件详情，如DXF/JPG/PDF等")
public class ArchiveResourceItem {

    @ApiModelProperty(
            value = "存档资源ID（唯一标识资源文件）",
            required = false,
            example = "3FO4K4VY536P"
    )
    private String resourceId;

    @ApiModelProperty(
            value = "文件名称（如\"客厅墙体定位图.dxf\"）",
            required = false,
            example = "客厅墙体定位图.dxf"
    )
    private String resourceName;

    @ApiModelProperty(
            value = "文件类型（枚举值：1=DXF，2=JPG，3=PDF，4=ZIP，5=JSON，6=DWG）",
            required = false,
            allowableValues = "1,2,3,4,5,6",
            example = "1"
    )
    private Integer type;

    @ApiModelProperty(
            value = "文件地址链接（可直接访问下载/预览）",
            required = false,
            example = "//qhconstross.kujiale.com/archive/2021/01/06/L72LLPGACVYAAAAAAI8"
    )
    private String resourceUrl;
}
